/*20 <= t <= 30*/
#include<bits/stdc++.h>
using namespace std;

int main()
{
	int t;
	cin>>t;
	if(t>=20 and t<=30)
	{
		cout<<"OK";
	}
	else cout<<"NO";
	return 0;
}
